<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>

import {onMounted} from "vue";
import {useStore} from "vuex";

export default {
  name: 'App',
  setup() {
    const store = useStore()

    onMounted(() => {
      const menu = JSON.parse(localStorage.getItem('menu'))
      if (menu) {
        store.commit('setMenu', menu)
      }
    })
  }
}
</script>

<style>
#app {
  height: 100%;
}
</style>
